f98a2a1f414538f81a36e4d7beef1f6ab0325afe,grails-core/src/main/groovy/org/codehaus/groovy/grails/context/support/PluginAwareResourceBundleMessageSource.java,PluginAwareResourceBundleMessageSource,afterPropertiesSet,#,73

Before Change


                final String pluginName = plugin.getFileSystemName();
                pluginBundles = getPluginBundles(pluginName);
                for (Resource pluginBundle : pluginBundles) {
                    String baseName = FilenameUtils.getBaseName(pluginBundle.getFilename());
                    baseName = StringUtils.substringBefore(baseName,"_");
                    pluginBaseNames.add(WEB_INF_PLUGINS_PATH.substring(1) + pluginName + "/grails-app/i18n/" + baseName);
                }

After Change


                pluginBundles = getPluginBundles(plugin);
                for (Resource pluginBundle : pluginBundles) {
					String basePath = null;
					final String baseName = StringUtils.substringBefore(FilenameUtils.getBaseName(pluginBundle.getFilename()), "_");

					// If the plugin is an inline plugin, use the abosolute path to the plugin's i18n files.
					// Otherwise, use the relative path to the plugin from the application's perspective.